<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
defined('_JEXEC') or die;

jimport('joomla.application.component.view');

class CprojectViewNewCproject extends JView {

    public function display($tpl = null) {

        $app = JFactory::getApplication();    
        $this->sections = $this->get('Sections');
        $this->categories = $this->get('Categories');     
        
        if (count($errors = $this->get('Errors'))) {
            JError::raiseError(500, implode("\n", $errors));
            return false;
        }
        //Tieu de   
        $this->setDocument();
        parent::display($tpl);
    }

    function setDocument() {
        $document = JFactory::getDocument();
        $document->setTitle(JText::_("Add New Cproject"));
    }

}

?>
